<template>
    <view>
        <u-cell-item :title="'扩展备注'" :value="objParams.remark" :arrow="false"></u-cell-item>
        <u-cell-item :title="'详情扩展位置'" :value="objParams.positionText" :arrow="false"></u-cell-item>
        <u-cell-item :title="'开始时间'" :value="objParams.startTime" :arrow="false"></u-cell-item>
        <u-cell-item :title="'结束时间'" :value="objParams.endTime" :arrow="false"></u-cell-item>
        <u-cell-item :title="'状态'" :value="objParams.statusText" :arrow="false"></u-cell-item>
        <u-cell-item :arrow="false" use-label-slot :title-style="{'width': '100%'}">
            <div slot="icon">
            </div>
            <div slot="title">
                <div style="display: inline-block; width: 100%;">
                    <div v-for="(item, index) in sysFileList" :key="item.id">
                        <u-image :src="item.content" alt="图片加载失败"
                                 v-if="item.type === 'image/jpeg' && item.typeMark === 'goodsDetail'" mode="widthFix"
                                 style="pointer-events: none; width:100%;"/>
                        <div class="textCotent" v-if="item.type === 'html' && item.typeMark === 'goodsDetail'" v-html="item.content"></div>
                    </div>
                </div>
            </div>
            <div slot="label">
            </div>
            <div slot="right-icon">
            </div>
            <!--默认value属性-->
            <div>
            </div>
        </u-cell-item>
    </view>
</template>

<script>

    import {SysFileService} from "@/dev/services/sys-file.service";

    export default {
        data() {
            return {
                sysFileList: []
            }
        },
        onReady() {
            this.findSysFileList();
        },
        methods: {
            findSysFileList() {
                const _self = this;
                console.log("console.log(this.goodsId)", this.goodsId);
                new SysFileService().findSysFileList({
                    fkId: _self.objParams.id,
                    type: "image/jpeg",
                    typeMark: "goodsDetail",
                }).then(result => {
                    _self.sysFileList = result;
                    _self.$forceUpdate();
                });
            },
        }
    }
</script>

<style lang="scss" scoped>
</style>
